﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Zhj.Community.WebApi.Models
{
    public class Token
    {
        //iss：Issuer，发行者
        //sub：Subject，主题
        //aud：Audience，观众
        //exp：Expiration time，过期时间
        //nbf：Not before
        //iat：Issued at，发行时间
        //jti：JWT ID

        public string Iss { get; set; }

        public string Sub { get; set; }

        public string Aud { get; set; }
        
        public double Exp { get; set; }

        public string Nbf { get; set; }

        public string Iat { get; set; }

        public string Jti { get; set; }

        public Userinfo Userinfo { get; set; }
    }

    public class Userinfo
    {
        public int Id { get; set; }

        public string Name { get; set; }

        public int Age { get; set; }

    }
}